package com.ts.api.module.channel.service.impl;

import com.ts.api.module.channel.dao.ChannelConfigIpCityDao;
import com.ts.api.module.channel.service.ChannelConfigIpCityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class ChannelConfigIpCityServiceImpl implements ChannelConfigIpCityService {

    @Autowired
    private ChannelConfigIpCityDao channelConfigIpCityDao;

    @Override
    @Transactional(readOnly = true)
    public int countByAreaCode(Long channelId, String areaCode) {
        return channelConfigIpCityDao.countByAreaCode(channelId, areaCode);
    }
}
